package cn.net.sinodata.system.domain.vo;

import cn.net.sinodata.common.translation.annotation.Translation;
import cn.net.sinodata.common.translation.constant.TransConstant;
import cn.net.sinodata.system.domain.PmTransChannel;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.common.excel.annotation.ExcelDictFormat;
import cn.net.sinodata.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 渠道平台视图对象 pm_trans_channel
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmTransChannel.class)
public class PmTransChannelVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 渠道编码
     */
    @ExcelProperty(value = "渠道编码")
    private String transChannelCode;

    /**
     * 渠道名称
     */
    @ExcelProperty(value = "渠道名称")
    private String transChannelName;

    /**
     * 渠道优先级（1-紧急、2-高、3-中、4-低）
     */
    @ExcelProperty(value = "渠道优先级", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=-紧急、2-高、3-中、4-低")
    private String transChannelPriority;

    /**
     * 报文模板类型（0-json，1-xml，2-imix）
     */
    @ExcelProperty(value = "报文模板类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-json，1-xml，2-imix")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "msg_template_type")
    private String msgTemplateType;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String transChannelRemark;

    /**
     * 渠道类型（1-接入渠道、2-交易渠道）
     */
    @ExcelProperty(value = "渠道类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=-接入渠道、2-交易渠道")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "trans_channel_type")
    private String transChannelType;

}
